import cn.config.MvcConfig;
import cn.config.MybatisConfig;
import cn.controller.DemandController;
import cn.controller.StatuteController;
import cn.controller.SysOfficeController;
import cn.entity.Demand;
import cn.entity.Result;
import cn.entity.Statute;
import cn.mapper.StatuteMapper;
import cn.service.DemandService;
import cn.service.QulificationService;
import com.github.pagehelper.PageInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {MybatisConfig.class, MvcConfig.class})
@WebAppConfiguration
public class test5 {

    @Autowired
    QulificationService qulificationService;
    @Autowired
    StatuteController statuteController;
    @Test
    public void test1(){
        Statute statute = new Statute();
        statute.setId((long)2);
        statute.setType(1);
//        Result statute1 = statuteController.select(1,4,statute);
//        System.out.println(statute1.getObj());
    }
}
